No it is not when there are no other options. It is silly to compare a natural act of feeding a hungry child with other things like menstruation, urination etc.
There is an amazing invention you may have heard of called ...the bottle. It’s what people used to use to feed babies in public before this exposing breasts in public fad spawned by feminism became popular in the 1980s.