Every state has different laws on this.
Some mail you ballots automatically. Some require you to request a mail in ballot by a certain date. Others will only allow you to vote by mail if you are a senior citizen, have a critical illness or disability, etc. It's a mixed bag, and it's intentionally difficult in some states.