The police are executing a search warrant on your home and find a stolen tv that was listed on the warrant in your bedroom. Can they now search your pockets?
Once they police have found the stolen property, they will place the person under arrest. Once a person is under arrest, the police can conduct a 'search incident to arrest'. This is a limited search, mostly for the purposes of finding weapons on the person, which could be in a pocket.