Fans and generators are just the same thing used in different ways. So, sure, you can use a fan as a generator (though it will produce AC current). How much power you get out of it depends upon the wind strength used to drive it.
Here's a link to get you started: http
/www.instructables.com/id/Old-PC-Fan-Wind-Turbine-in-10-Minutes/