Any Gullah will swear it was way before then and the slaves brought the dish from West Africa.
Grits were invented by American Indians, likely by the hunter/gatherer/farming tribes in the southeastern US. So while there’s no doubt that the slaves brought many great dishes with them, shrimp and grits was absolutely not one of them. Though a slave already IN the US may have come up with an early version of it.