depends.. if you turn WIFI on and it doesn't connect to a router, it goes to sleep when the screen turns off.
this can be changed in the WIFI settings, but typically it'll go to sleep.
and yes, using WIFI over 3G will yield better battery life in almost every situation.