Babies sense of smell

Is it true babies can smell & know if their mom is in another room?
I keep reading that once a baby hits the 3-month old mark, some babies prefer either only bottle or vice versa breast. And even if someone else than the mom give the bottle, baby might still reject bottle & want the boob even if mom is in the other room?!