Yes, your body can use fat for energy.
I have found that I can gain weight while keeping fat gain low if I up the calories and keep the carbs low rather than just going on a typical bulking diet. I tried a regular balanced bulk of about 40% carbs, 30% protein and 30% fat with about 4000 calories.
However, I have maintained my lean mass gains and and saw less fat gain when I switched to a general diet of approximately 60% fat, 33% protein and ~7% carbs with about 4800 calories.
Others may respond differently so you really have to just try it and be your own judge.