Mold can only travel through air, so if the mold is on the basement floor and the upstairs floor is sealed off from the basement, then the mold will not be able to spread up the stairs. If you have any concerns about mold in your basement, you should contact a professional to assess the situation.