I do not think that would be wise molds, fungus and botulism could occur.
you could jar it hot then close it and refrigerate it. the lid would create a vacuum when it cools and it will have been sterile when jarred.
this will not assure that no molds will appear as it sets in the cupboard but it will reduce the likelihood.