Rolled baby over too fast

My baby was laying on her back and i got her arm and rolled her to her side because she was spitting up and i didnt want it to get in her neck shes 2 months i am scared if this can cause shaken baby syndrome