Is velocity conserved in a elastic and inelastic collision?

-I think velocity is not conserved in either collision because when they hit each other the energy transfers to one another. Am i right?

You are right because it is momentum, not velocity, that is conserved.

Energy is conserved in an elastic collision, not in an inelastic collision.