Yes, third-party insurance is the legal minimum you need to drive in the UK. It will also cover you to drive your car in most European countries.
However, you usually won’t be insured to drive other cars. For that, you’ll need to be added as a named driver to another policy, for instance a family member’s car, or have comprehensive cover with ‘driving other cars (DOC)’ included.