Is it safe for a newborn baby to be living in the basement?

Possibly. Presuming that it is adequately heated/cooled, and does not have mold growing in it, it should be no different than any home.
Probably. If the basement is heated, and ventilated and has no mold growing in it, is is probably ok to live there. In most places, a basement apartment has to meet certain standards for safety.