Yes, you need to create rules and possible to display the remaining quantity of a particular product if it's less than five.