Linearity holds regardless
For any random variables ,
with no independence assumption. This is worth stating loudly because almost every clever expectation argument in this course leans on exactly that.
The standard use: to count occurrences of something, define an indicator for each candidate, sum them, and take expectations. The indicators are usually wildly dependent and it does not matter.