26 weeks contractions every one minute

Ann-Marie • TTC baby #2 :)
I am 26 weeks pregnant and has to go to the er yesterday because of contractions every one to two minutes apart. They had to give me a shot to stop the contractions. Has this happened to anyone ? Did u ultimatly end up delivering early?