Sweet potatoes are good for you but are high in polysaccharides which are complex carbohydrates which can cause a person to fart due to the carbohydrates creating gas in peoples stomachs.
Garlic, onions and beans also contain those polysaccharides "Complex Carbohydrates" which causes people to fart.
So yes sweet potatoes can make you fart which is perfectly normal.