Yes, you can set an expiry date either when you create the credentials or at a later date either manually or by api.
Here's where you can add an expiry date for the various options of credential creation.
Manual creation - Add an expiry date in the section provided.
Spreadsheet Upload- Add a new column in your spreadsheet entitled expiry date. Add the expiry date date data into this section. Upload the spreadsheet.