You can but depending on the UK county you live in, you will need a food hygiene certificate and the premises you plan on making the food may need to be inspected. You may also need insurance. Every car boot is different, most charge a fee for a stall which is the same whether you are selling jumble or food.
Check with your local council website for everything you need to know about selling food to the general public at an organised event.