Can changing from formula to breast milk cause vomiting?

My baby is a little sick so I gave her breastmilk for the first time in seven months well last night she goes to bed and then she wakes up sits up and projectile vomits milky liquid. Could this be from giving her breast milk when she’s use to formula?