Staph infection

Has anyone been pregnant and had staph and just used the bactroban cream? And did just the cream work