Is it ok to work out with low platelets 5k?

Probably not. With platelet count less that 20k, you are at real risk of bleeding with minimal trauma, so this is probably not a good time to be in the gym. Assuming you are getting treatment, you should wait until the count comes up, but it is vital that you talk to your doctor about it.