Could it be something bad if I have passed out?

Can be dangerous. In most cases not. However some causes of passing out such as heart rhythm problems can be dangerous. You should be evaluated by your doctor if you pass out.