Yep. "In the year of the Lord" means "Anno Domini" which is AD. It is correct to write AD 1787, 1787 AD not so correct.
LOL. Well, that’s another matter, which I am constantly correcting!