According to Wiki:
Under the strict touch-move rules enforced in most tournaments, castling is considered a king move. But under current US Chess Federation rules, a player who intends to castle and touches the rook first would suffer no penalty, and would be permitted to perform castling, provided castling is legal in the position. Still, the correct way to castle is to first move the king.
Actually, I know how to castle, all the rules and stuff... But i was playing a chess game with a new neighbor and when I was going to castle he said that i couldn't castle cause i moved the rook first than the king. I only played a few times in a real chess board so i was kinda confused. It is true?