Sick and pregnant

Is it ok and safe? I mean not safe but would it effect the baby if I have like a little cold or something?