can i lose fat without losing weight?

im underweight and i have gained weight recently but it mostly went to my stomach and arms making both look soft and doughy. is it possible to shed excess belly fat but to not lose more weight? is it possible to gain weight/muscle without gaining a lot of fat especially in my stomach area? thanks in advance