What does ‘get with the program’ mean?

( vp ) To do what is right, conform. You had better get with the program, Sonny, or you’re off the team.