Yes, it's common for immigrants employed in Copenhagen to chose to live in Malmö and commute, because the Swedish path to citizenship is nicer: it's shorter, and doesn't require them to give up other citizenships. This has annoyed the more nationalist part of the Danish political scene, who see it as a loophole.