there is a slight difference. You used "correct" correctly in your sentence. Correct refers to an answer (For example: you know the correct answer to the question), in the question you mentioned above "correct" is used as well, as you ask for the meaning of something. If you want to say, that someone has said something true, you will say "you are right". For example: X says: This lesson is very boring. Your answer will probably be: Yes, you are right! - you have the same opinion as X, in this case you would not say "correct".
Hope this helps