As already mentioned, it's safe to drive as long as you know your tyre pressures are correct. Was the warning light on when you bought the car or has it happened since? It could be that one or more sensors were damaged during the tyre change. If you have access to an OBD reader like Carista you can check the sensors are reading, see pic. It will give you an idea of where to start.