Yes, both concepts are alive and these are two different types of shops: универсам is overwhelmlingly a food store, while универмаг - mostly manufactured goods shop (meaning the most part of products being sold there). This is just for the historical reasons, and the names of the shops do not reflect this distinction: