Yes, there are multiple ways to achieve this, but I personally prefer this method:
After you pin the metric to the dashboard, click on it and you’ll see a panel on the left side where you can set a custom timeframe (for example, the last 5 minutes).
Once set, you can clone the tile without the fixed custom timeframe, and it will always show the latest 5-minute data dynamically.