Almost everyone I’ve seen using them on the web (myself included) does that. Very few people I’ve seen set them open.
(Lots of people use en-dashes set open instead of em-dashes set closed for the uses for which they are interchangeable as a matter of stylistic preference, though.)
(Lots of people use en-dashes set open instead of em-dashes set closed for the uses for which they are interchangeable as a matter of stylistic preference, though.)