Shouldn't be a problem. I've used various parts, derailleurs, stems, seatposts, cranks, etc that were supposedly road-specific on my mountain bikes at one point or another. No issues. You'll see a lot of weight weenies and racer types use roadie parts on their mountain bikes all the time. I wouldn't worry about it.
Which stem did you get?