Gold rams and blue rams are just different color variations of the same species so yes they can be housed together and will successfully interbreed.
As far as sexing goes I've found the easiest way to sex gold rams, especially young ones, is to look at the dorsal fin. An extended second ray...