It fits, provided you have the right box. Just play with it a little. The power cord should come out of the left side of the box, if that helps any.
Also, do yourself a favor and attach suction cups to the prefilter box, and then set the pump in there. It is much easier to make it level, and adjust it up and down with the water level. Also, you won't have 100 % the weight of the pump and the box hanging on the connector hose, which can then pop off and fire about a gallon of water all over your floor. How did I figure that out?