Can I Legally Deposit a Check for Someone Else?

Can I Legally Deposit a Check for Someone Else?