While you won't do any short term harm to your pump, where the valve is located matters. I assume this is a centrifugal and not a positive displacement type pump.
If the valve you close is on the inlet side of the pump, you won't increase line pressure, but you could cause cavitation in the...