I wouldn't want anything putting pressure on water pipes, as that upwards force will put a strain on all the joints.
While it's probably fine, I still wouldnt risk it.
Maybe count this box as a valuable, educational prototype? Then follow the advice here when building box mark 2?
Make it snug fitting you can push in and out.
[Edit]
And use this opportunity to cut a semicircle out the top where the pipe exits, rather than a square. Looks neater.