Pruning is excellent. In fact I have a good thread about it with pictures. But if you plants are already going to hit the roof, then pruning them is only going to push them to grow further upward, unless they have finished their growth stage.