It happens. Even to the fanciest bikes.
(fun tip- whenever fixing a puncture, it is good to find a place to prop your bike up so the chain and derailleur are not placed on the ground. Notice the way I positioned my pedal on the fence to keep the back end of the bike up. It just makes working on it easier and it keeps grit and dirt out of your drivetrain!)