Can depression be genetic?

I hope I don’t offend anyone with this post, I’m genuinely asking because I’m 22 and since I was 15 that I push negative emotions away but they seem to always be there.

I also have 6 brothers and sisters, 1 of which has been dealing with depression for over 5 years, and 2 others who have dealt with mild depression and drug abuse.

It makes me wonder if it can be about genetics.

(It might also have to do with the fact that our father was always absent and the consequences it bought on our lives but I don’t think I’m ready to assume it’s my dads fault)

Hope I don’t sound dumb