Question: are they behaving themselves meaning?
Answer: It means are they being good as in the right way. It means are they being good as in the right way.