Yes a fan will let light through if you just slap it in the middle of a wall made of plywood or something. But if you attach it to some ducting (or cheap vacuum cleaner hose type stuff, or whatever looks reasonable given the fan and what is sitting aroudn in your hardware store) and have a couple twists and turns in there, you should be fine. Line it with cheap black cloth inside the duct if it's still an issue.
Alternatively, attach some sort of a hood right outside the fan and another one inside, so that light would have to bounce a couple times at least to end up inside. Then again, use black hoods or line with black felt. If you're in a basement to begin with, there shouldn't be a ton of light outside the darkroom, so you probably won't have to be too hardcore about it.
It also depends what kind of developing you're doing. Stand development of 35mm rolls in a tank? I wouldn't bother with any ventilation. You don't even have to be in the room most of the time, and the liquid isn't exposed to evaporate or fume easily.
Standing there for half an hour with large format sheet film trays with tons of surface area? Much more important.
And I work with bleach for my developing process usually (stripping the emulsion from one side of double emulsion xray film), which necessitates a vent more than the actual developing. So if you're doing special stuff some chemicals might be more noxious.