Stupid Question but wondering - can you start earning CPE before license?

Stupid Question but wondering - can you start earning CPE before license? So if i expect to get my CPA license by the end of this year, can I begin to accumulate CPE in the months just before I get it? CPE that would likely count for state requirement after I get it? Thanks.