I think there is a case for Rubio and Carson doing this, since Cruz is probably acceptable to their supporters. It would probably be best for the others to stay in though, as their supporters would probably just not vote at all if they exited, and that could allow Trump to cross 50% in some of the states that have a winner-take-all threshold.
Of course, that is assuming those candidates would prefer Cruz over Trump, which is far from certain.
Rubio is a senator, and, thus, it is very likely he would prefer anybody other than Cruz to win. That
anybody would include Donald Trump, Vladimir Putin and Devil Reincarnate.