Can the option to pay tax under composition levy be exercised at any time of the year?

No. The option is required to be given electronically in FORM GST CMP-02, prior to the commencement of the relevant financial year.