Yes. You can use your ElvUI profile across different versions of WoW, but some settings may need adjustment.
Retail and WoW: Forever share similar restrictions imposed by Blizzard, so their available options are more closely aligned. When moving a profile from Classic to Retail or Forever, review your aura filters and tags. Some tags are only supported in certain WoW versions and may need to be replaced or removed.