Use of API near expiry date

Hi everyone,

is it allowed to use an API which is a few days before expiry to manufacture a drug product with a shelf life of 2-5 years?

yes it can be used