You're mixing something up.
A gene is a specific part of the DNA.
In most cases, another protein converts this into a negative, the mRNA.
The mRNA is transported to the Ribosoms. Then the Ribosom takes the tRNAs, and matches their pattern (the anti-codon) with a pattern on the mRNA (the codon).
Attached to the tRNA there are amino acids, and they are connected to each other in the same order the tRNA is matched to the mRNA.
Is a gene the plan for a protein? If that's a question for school, then the answer is yes.
If not, then the answer is no. Then a gene is a sequence on the DNA for either a protein or a RNA.
Because e.g. the tRNAs themself are also encoded via genes. There are also some other pathways, which do not end in a protein, but into biochemically active RNAs, so called Ribozymes. They are not rare, but normally not covered in school.
To make it more complicated: There are RNA viruses. They do not have DNA, but RNA. They force their host to translate their RNA parts into DNA parts (also only some classes, not all). These genes are then further used to produce the virus in the host cell. And the original RNA parts, from which the genes are formed, are also called genes (not sure if that's really an established convention).