Hi Sn00py42!!,
Yes.
The period that the property was your main residence qualifies for private residence relief, plus a further 9 months over the number of months you owned the property.
Have a look at the guidance at
HS283 Private Residence Relief (2023).
There is also a capital gains calculator at
Tax when you sell your home, which follows on to registering a capital gains account to report and pay the capital gains within 60 days of the completion date.
Thank you.