I am currently studying about bootstrap and while studying it I came across question can bootstrap is used for estimating the prediction error.I have searched it and found it that

**To estimate prediction error using the bootstrap, we could think about using each bootstrap data set as our training sample, and the original sample as our validation sample**.

What I want to know is it a correct way and to use bootstrap to estimate the prediction error and what are the problems associated with that.