Does swimming put excessive stress on shoulder?

swimming, especially butterfly and breast stroke causes excessive stress on pitching shoulder, so should a pitcher be involved in competitve swimming?

In the winter my college has us pitchers do a swimming routine because of how great of a workout one gets from swimming for the entire body and especially the shoulder, as far as competetive swimming though I’m not sure if that would hurt you more then doing a set workout in the pool.