The disease is not your fault. While it is very natural to feel guilty, especially when a loved one or child is involved, the viruses that can cause heart disease are common viruses that circulate in the human population. By far, most of these infections pass unnoticed. Infection by these viruses is a random event, something you cannot rationally guard against except by following standard good hygiene practices. No, it is not.
Viral myocarditis is an infectious disease and is due to a chance infection with a virus.
Viral myocarditis is not transmitted genetically as, for example , from a mother to a son. There are some data to suggest there is a partial link between susceptibility to viral heart infection and human genetics, but it is not known precisely what the link is. If you have other basic questions, let us know and we will try to answer them here for you in due time.