Spitting up out of mouth and nose

My newborn keeps spitting up out of his mouth and nose. He also spits up a lot? Formula fed. Is it okay if he is spitting up out of his nose too? Also any other babies out there that spit up a lot every feeding and still gained weight? FTM