You can. Might look into r/leangains.
But working out in fasted state isn’t easy. I tried when I started. I was benching about 170. 8/8/6 reps prior workout. First fasted workout - 7/4/1. I was seeing stars when I stood up and had to sit down.
But over time gluconeogenesis kicks in. Your body gets more adept at converting body fat to sugar for intense exercise.
I suggest new fasters and those prioritizing strength training to do your workouts soon after eating your meal. You’ll have good energy and strength for your workouts.
Fasting is not optimal for muscle building. But you’ll get results. And actually see the results when you look in the mirror. 😉