It can yes, 2 things that should avoid that.
1) only flux the pipe, not the fitting, so any excess flux is pushed out, rather than pushed (edit) in.
2) only use the right amount of solder with end feed, good rule of thumb - use the same length of solder as the diameter of the pipe, no more...