Hi welcome to health care magic forum.
it can be std
,but most common causes of blood in urine are urinary stones and other urinary infections sou you should do basic urine analysis first and uro ultrasound
. if nothing is found you should do std testing and start antibiotic treatment if necessary.
Hope I have answered your query.