The answer really depends upon the surgery that you're having. This is something that you should discuss with your plastic surgeon. Some procedures require more pain medication that and some will require less.
As a good rule of thumb if your upcoming examination is important to you the safest route would be to have your surgery after the examination.
Web reference: http://www.atcosmetics.com/abdominoplasty/index.html