Yes, you can setup a refill reminder while adding or editing the medication by providing a refill "Date", "Quantity" and ensuring the "Reminder Enabled" is in the "ON" state.

The "Doses Remaining" will be calculated by subtracting the doses recorded on or after the "Refill Date" and once the "Doses Remaining" is equal to less than 10 you will get a refill alert whenever you record a dose.