No, soldering flux does not expire. However, over time it may become less effective and need to be replaced. Soldering flux is a material used to help ensure the proper bonding of two surfaces during soldering.
The flux helps to remove any oxides or impurities that may be present on the surfaces to be joined and it also helps to prevent the formation of new oxides during the soldering process.