No, pushgateway was not built for that purpose.
Pushgateway remembers only the *last* value that was pushed to it, so that it can be scraped later. It's for one-shot scripts which run and then terminate, but want their result to linger around to be scraped later.