yes. However, personally I do not recommend it. Some motherboards, particularly older ones have difficulties. I think by now, most of these problems are ironed out.
Generally though, you'll want to stick with all one type, it makes things easier and smooth.