Definitely. Check out this guy who posted the other day (u/fortheswarmbruv)
It’s all about timing and eating quality foods. Eat your proteins. Break your fast after your workout. Definitely possible. Also requires some hard work obviously and results won’t happen overnight like they might for people eating all day and night while training (but way healthier this way).
As long as you’re getting enough protein and your deficit isn’t too aggressive, yes. Especially at the start where the body will be willing to put on some initial muscle almost regardless of circumstances.
Eventually it does become a bit of an either or situation, where you surplus to create a more efficient environment to build muscle tissue and then deficit away the fat.
It’s very hard to gain muscle and lose fat at the same time. Most people first get down to a healthy body fat level. And then gain muscle.
Unless you have a lot of muscle underneath the fat it’s hard to transition from overweight to shredded (or just even muscular and trim).