Hi, yes, that should be fine - match up the colours, black is ground (0V), red is +5V, yellow is +12V, normally, on a standard ATX supply. Standard precautions apply, don't short it out, or connect the 12V to the 5V rail or anything like that and it should be fine.