Baking soda and vinegar are generally safe for most types of pipes when used in moderation. However, repeated use of these substances may cause damage to certain materials such as older or corroded pipes. It is advisable to consult a plumber for advice on the best drain cleaning solutions.