Easy answer is that yes, because they have Bluetooth and you can pair them to your laptop that way.
The long answer is possibly depending on use. To my knowledge current generation Macbook and Macbook Pro do not have a 3.5 mm headphone jack so you would only be able to connect via Bluetooth. If your intention was to pair to your phone and connect via wire to your computer then you would need an additional adapter. This would be a 3.5 mm to USB or USB-C depending on the specific model and configuration. If your intention was always to pair the headphones to the computer and not use the cable then you are golden.