"Once the Primary is over. If a candidate does not win in the party they ran in can he/she switch to lets say a different party like Libertarian or some other open party to run against the Republicans and Democrats in the run off?"
Yes. If a candidate does not win the primary, he/she can run as a third party candidate or write-in in the general election (not runoff). HOWEVER, between ballot access issues (requirements/deadline to get on the ballot in each state) and the Electoral College, the process makes it near impossible to win. Essentially, the game is rigged to Democrat & Republican.
On the other hand, a primary losing candidate may still have strong enough appeal in the public eye. In this case, he/she can run as a third party candidate or write-in, be a spoiler, and change the outcome of an election.
Think Ross Perot and Ralph Nader in recent elections.
"If the freedom of speech is taken away then dumb and silent we may be led, like sheep to the slaughter."
⇾ George Washington
Have you ever thought about running for office, or know someone who should?
Run for Office is a free service that provides all the tools you need to launch a successful campaign whether you are a seasoned veteran or first-time campaigner.