Can we use providers esx and aws in a terraform script

I’m running terraform in a jenkins docker build agents, where the docker dies post its run, thus i wanted to save the terraform state in a remote backend which can be accessed on the next run, thus i wanted to know if we can used s3 bucket along with provider esx to store the state information as we are spinning vsphere instances. Kindly advice if this is fair thought or something better can be implemented in this above scenario. Thanks