Dorothy,
Ballycarty is a townland of 182 acres. In the 1901 census it had a grand total of 7 houses and a population of 37.
http://www.census.nationalarchives.ie/pages/1901/Kerry/Ballyseedy/Ballycarty/
In Griffiths Valuation (1853) the townland also had 7 houses, one of which was a labourer’s house and small garden, occupied by Thomas Kearin. There were no other Kerin or Gorham houses in Ballycarty. So assuming we have the right townland, then it’s not very likely that there’s going to be two Thomas Gorhams married to two Elizabeth Kerins there at the same time. So it’s probably your couple.
If James & Margaret’s ages don’t match your information, there can be several explanations. The most obvious is that Irish people didn’t celebrate birthdays in the 1800s and often had little idea of their age, especially as they got older. If officialdom asked for an age or date of birth it was common to guess or make something up. You’ll see wide discrepancies between folks ages in the censuses and other records.
Another explanation is that there were children named James and Margaret born earlier, but they died young. It was common in that situation to re-use the names. Tradition was to keep the names alive within the family. Literally. So the James & Margaret born in 1865 & 1867 may be the second children with those names in that family.
Civil registration of RC marriages started in 1864, along with statutory birth registration. I don’t see Thomas and Elizabeth’s marriage in those, so would assume they married before 1864. Because the RC parish of Ballymacelligot has no records before 1868 you are probably not going to be able find a record of the parents marriage or of any children born before 1.1.1864.
Feel free to ask any questions you like. I think Carolyn knows the area better than I do so I'll defer to her knowledge!