Yes, but be warned that doing a /whois on everyone in a channel, especially a large channel, can get you flooded off of the server, in addition, some IRCops have scripts that give a custom response as they have the ability to detect and intercept /whois queries.