Can you paint the engine bay with the engine still installed?

Definately! I mean, where do you put all the oil and brake fluid, dust and anti-freeze that gets all over everything ????