You mean "Is it immoral."
Really, it depends on the secret. If it's something that may be affecting the lives of others in a bad way, and telling your parents would help the situation, (even if it gets you in trouble) then you should probably tell them.
If the secret affects no one in a bad way, and you just feel bad about not telling them, then it's ultimately a decision that you will need to make on your own.