If you plug your extention cord into the wall outlet, and your fan is wired, then yes, the second you plug it in it will be juiced and on.

Wiring....

white to white
green to green
black to black

you have a new apartment....where are you going to extract the heat / smell to?