Not anytime. Depending on your local office, you have to wait until you have
*****
days or less remaining at the earliest.
Most offices accept 1-year extension applications within the last 30 days. There are some offices, such as Bangkok, Chiang Mai, and a few more, that allow you to apply for it when you have 45 days or less with your stamp.
Check with your local office for their policy.