Using a 2 inch pipe to vent a bath fan
There are probably no concerns in terms of safety. Keep in mind that the capacity of a 2" pipe isn't half that of a 4" pipe. It's one quarter the capacity. For that reason, it's going to be hardly worth your effort.