They will have to use different dongles (the small USB that connects to your PC), but sure. They will work perfectly.
Unfortunately I bought the keyboard used and it didn't have a USB connector with it. Thanks for the response.
Then sorry to tell you but a keyboard won't recognize
a mouse's dongle. Not to mention they're not even the same
company, and that you can't operate two devices on the same dongle.