Only if you can show you're in 'gainful employment'.
From Money Advice Service:
What counts as gainful self-employment?
To count as gainful, your self-employment must be organised, developed and regular and you must expect to make a profit. It should also be your main job.
At the gateway interview, you’ll need to provide evidence of your self-employed activity, for example your business plan, copies of invoices and receipts, or trading accounts from the previous year.
If the assessors decide that you are not gainfully self-employed you’ll need to look for and be available for other work instead.