Yes. Myocarditis is inflammation of the middle layer of the heart, while endocarditis is inflammation of the inner lining of the heart.