Peter started sinking when he started doubting. With faith in Jesus anything is possible.
If we had enough faith to walk on water (and it was His will) then we could talk to Moses. I can’t walk on water. Can you?