Once upon a time, yes. Then there was a major exploit that allowed a character to draw their own non-existent container anywhere ingame to store things inside of it preventing the loss of those items upon death. Sometime around the time this exploit was fixed, you couldn't search bags without opening them anymore. (Also fixing being able to loot corpses without opening them)