It seems like it might be acceptable, because it's done slowly and not abruptly, and it's considered a good exercise. But to be sure you aren't risking damage, ask your surgeon. If you think he doesn't know what that exercise is, send him the question by email and include a link to a YouTube video of someone doing a stomach vacuum. That way you can be sure he has given a correct answer based on full information.