Yes. When you plug a keyboard into an Apple laptop, macOS will reassign the modifier keys to operate with macOS. It's important to note that Microsoft Windows shortcut keys won't work with macOS. Furthermore, if the keyboard has special keys or functions, not all of them will work with macOS.