Yes, but you need to allow up to 3 clear working days (not including weekends or Bank Holidays) if you wish to receive a full refund from the DVSA. For example, if your practical test is on a Friday you would need to cancel your test by the previous Monday. You can cancel your test by going to
https://www.gov.uk/cancel-practical-driving-test.