I can answer with certainty for Apple: no. iTunes Connect will not permit you even to create the app's record, much less upload a binary. See screenshot. That said, you will likely get away with something like "damnit!!!!" As long as it's not equivalent (whitespace ignored).
However I did just now create in the Google Play Console an app called Angry Birds. I don't dare attempt to publish, so I'll leave the Google half to someone else. Technical matters aside, I imagine that if you publish an app with the same name, the original owner will have something to say about it. You will likely receive a cease and desist letter, and/or a suspension from Google.