Ok for what ? That's the important thing.
Generally though, MIT allows you to use the code however you like.
But you have to include the original copyright. You can't hold the authors liable for anything or use their trademark/branding. You can combine the code pretty much anything as long as the MIT licensed code retains its license and copyright. You can't remove the MIT license.