Projector distortion correction

Given a 3d surface(an obj file) and an image . I was hoping I could achieve undistorted projection on it by performing the following steps

Draw a rectangular image onto the object. Switch to projector viewpoint (set glfrustum to projector properties) and capture this as the image to be projected from the projector.
Does anyone see a problem with this approach?