Yes, there is a connection. I believe that you have "compressed" a generation. The John McCroskey that m Elizabeth Gay was born, I believe, 1680 in Wigtown, Ayrshire, Scotland. Their son John McCroskey, b 28 Sep 1715 in Antrim, Northern Ireland, is the one who m Sarah Hayes, b 1745 in Ireland. I have four sons for this John and Sarah, John, James, Joseph, and Alexander. My line descends through Joseph.