If they've logged in successfully before from that device, there's a good chance it will be classified as a recognized device.
However, you can see which devices your Facebook account is currently logged into, and you can log yourself out of any of those devices. From the dropdown menu at the top of the Facebook site, go to:
- Security and Login
If you see any unrecognized devices there, or devices that you know aren't yours, log yourself out by clicking the three dots to the right, then Log Out.
Logging out of all current sessions, combined with changing your Facebook password, will require anyone logging into your account from another device to know your new password in order to log in as you again.