Depends on the diameter and application.
Small diameter, pressurized water and WW pipe can be deflected 5 degrees, max. This is usually specified by the local utility.
Gas piping shouldn't be deflected at all, again, usually spec'd by gas co.
Large diameter gravity flow piping can quite likely tolerate deflection, but most often straight runs to junctions are specified.