Breathing in a fart is not harmful to your health even if you breath in a fart from someone else.
We breathe in farts mostly everyday when we're around other people and nothing happens.
So nothing to worry about although if you directly breathe in a fart from someone that just farted close to you then you might feel like vomiting or feel sick but your health will be fine.