You could only do this, to my knowledge, if you had bought a Mac with OS X already on it or obtained a copy of the OS illegally as I am pretty sure Apple has copyright laws against purchasing the OS off of the machine. Someone please correct me if I am mistaking about this.
However yes, if you get a copy of any of these OSes and create either a bootable CD or USB, create a separate hard drive partition for each it should be possible for you to triple boot your computer. There are videos on how to do this if you do a quick youtube search though it sounded like your question was more trying to figure out if triple booting is possible and the answer is yes as long as you have enough space to partition. Just search for dual boot instead of triple boot cause that is what all the tutorials seem to do but it will be the same idea when you get to dual booting.
Like I said, Apple doesn't sell their OS outside of their machines so unless you download it illegally you can't download it but Windows does sell them. In fact, Windows 10 is still in development so that is free at the moment and available for download here http://windows.microsoft.com/en-us/windows/preview-iso