Yup,
iMacs support wireless printing since the iMacs have built-in wireless Internet these days, you can connect to a wireless printer without any problems. If you want, I can give you a tutorial of how to setup a Mac to print to a printer wirelessly*
*a printer with built-in networking is required, or a shared printer on any computer can work as well.
Also, buy an Anti-Virus with your future purchase of an iMac or an Internet Security Suite for Mac for better protection against web threats, zero-day attacks, and break-ins.