Yes, but only if there were already a dictionary word I believe. It is interesting to see that if I don't press the shift key and just type lowercase 'a', the problem doesn't occur. It also doesn't happen if I had already "trained" it by typing "psAlms" at least once in the sentence.
If I want to make it occur again, I have to delete the whole sentence and try re-typing.