This question can't be answered without more information. I can think of times where stacking off here is clearly right and times where it is clearly a mistake.

Include info on the board, stack sizes, action so far (with full bet/pot sizes), and any and all reads you have, and then you have an answerable question.