It can be inherited, yes, but just because it generally tends to run in the family it doesn't necessarily mean that you will definitely get it. Your risk increases depending on the number of people in your immediate family who have developed the same type of cancer and the age at which they were diagnosed. This is because a mutant gene can be passed down through generations. For example, If there is a tendancy in the family for women to die at a young age of breast cancer then it can be considered hereditary and it's important for young women to consult a genetic counsellor to determine just how much at risk they are. The risk increases by a certain percentage for each person who develops the cancer. If one immediate family has the cancer then your risk is something like 5% greater than normal, if another person has had it then the risk is about 15% greater than normal...so on so forth.