I had a one night stand
What happened to cause this one-night stand?
Basically my friend wanted to hook up with a girl
Its ok to have a one night stand if that's what you want, however you need to be sure that you are smart when going about it. You want to be sure you are protected and do what you need to do to not ruin your future.
I just wanted some action. The hook-up was amazing
Well in that case, as long as you both understood what you were doing, there's nothing wrong with it.  I'm glad that you enjoyed yourself, and since you presumably took all the proper precautions, this was likely just some harmless fun.