Yes, you can work while studying in UK. You can work on-campus and off-campus during semesters and semester breaks under the UK job permit.