Even on the iPhone it’s one of my regular frustrations that Apple’s autocorrect tries hard to keep me from using profanity. There are some ways to mitigate that but it’s tedious and annoying to have to do so.
I'm right at the edge of turning off autocorrect altogether, just because it has a habit of changing previous words, not just the one I'm typing. If I only ever talked with very generic English this might be okay, but when I'm using subject matter lingo it fails utterly and becomes a tremendous nuisance to try and convince it to leave that text alone. Sometimes even deleting the correction and re-typing what you want doesn't stop the behavior.