Slept in by accident

I have been working at this job for 2 and a half months now and this is the first time this has ever happened.

I missed the first two hours of my shift and I told them the truth that I overslept, apologised profusely and said I would work whatever they needed to make up for it

My manager said that they will just take it out of my PTO and it should be fine from there. Did I handle this correctly?