Yes, they need to be talking about the same topic in order to be related, but this has to be considered on an individual basis within the specific text: there is no clear line of relatedness. Coherence as a syntactic term has to do more with particular utterances and conjunctions that connect sentences in a meaningful flow.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.