1660s, "a later thought," from after + thought (n.). As "reflection after an act," 1680s. Sense of "youngest child of a family" (especially one born much later than the others) is by 1902.
the garage was an afterthought
afterlife
aftermarket
aftermath
afternoon
aftershock
afterthought
afterward
afterwards
afterword
aftward
ag