Clients can use the "Pay Bonus" tool to pay money to any freelancer they have previously hired.
It does not matter if there the client has a contract currently open with that freelancer.
It depends how long ago "some time ago" is.
You can only give a bonus if the "pay bonus" button still exists. I am not sure if it goes away after 6 months or after a year, but it does go away.