Right, you can still do it but there can be some awkward consequences.
This is highly unlikely, but for instance if you're eligible for a draft, and both countries draft you, one of them is not going to be happy with your response.
There are probably some more likely scenarios where your obligations to one of your nations are in conflict with the other.