Yeah ofcourse.
So if it's an apple. I'm photos you can search things the main two are "bathroom" and "brasserie"
Just make sure you delete those search terms before locking the phone.
Ansorids that have google photos have the same search function. I think the above two work. Also "lingerie" works on google photos.
I also always check deleted images. Typically a goldmine.
Next I go to messages and find their partner and Click into the info section that pulls up any images sent back and forth.
That's a quick search

I prefer iPhones. As I can airdrop without any evidence.