Yes. A police officer can search you but only if they reasonably suspect you may have:
- a weapon
- a dangerous drug
- stolen property
- tools to break into houses or cars
- something that you plan to use to hurt yourself or somebody else
- evidence that someone has committed an indictable offence (and this evidence may be hidden or destroyed).
A police officer can also stop and search you if they reasonably suspect you are in a criminal organisation.