Yeah, I use bike racks on the bus all the time.
I find the ones that are used on the GO bus in the GTA/GTHA Ontario region to be a little scary though, bike rocks back and forth like crazy so I tend to take a beater bike when I am going to be doing this. Not sure what other places are like in terms of the rack models they use.