I just had a bloody nose and I spit up some blood, so I'm wondering if it's ok to spit blood?

Yes. If the blood drained down the back of your throat that would happen. If it reoccurs then you need to get checked.