No, the cards crawler requires the page meta headers to be static and cannot execute Javascript. Additionally, if the URL remains the same but you want the content to be dynamic, you should be aware that the crawler caches data for up to 7 days, so the image first associated with the URL would remain the same until the crawler revisited and invalidated the cache.
That’s the way the cards crawler works and I’m not aware of any plans to change these behaviours at the moment.