Theoretically, this should not be a problem. However, if you buy this as 2 separate tickets, your carrier may not you board in EVN without a valid Russian visa, even if you have an onward ticket on a separate airline.
Personally, I wouldn't risk it and would probably look at a different routing.