Yes. The state pension is available based on your National Insurance contributions, which you will typically need to make as a self-employed person.
You’ll be entitled to the state pension if, for at least ten years, you’ve paid NI contributions, paid voluntary contributions, or received NI credits. But even the full state pension (£203.85 a week in 2023) is unlikely to support the lifestyle you want.