Various adapters and enclosures are available for the different drive form factors. Be sure to read the fine print to ensure your drive will function. Even if it fits, it may not be compatible.
If your MacBook is a 2016 Pro or a 2018 Air or newer, storage will likely be soldered to the board and cannot be extracted in this way.
The 2016-2017 Function Keys MacBook Pro does have a removable drive, but adapters are not available. To extract data you will need to install the drive into a similar MacBook.