Are really old houses safe?

I’m moving to Connecticut and most of the houses and condos I’ve seen are 1940s or earlier. Oldest I saw was 1880ish. Are these infested with mold and asbestos? Or are at least the good ones generally well-kept? I’m from somewhere where newer houses are the norm.
7 answers 7