Time out?

My son will be turning 2 soon. How do I get him to stay in time out? Do you think it's too soon?