Undergraduate, majoring in Computer Science. About student loans.

<p>So I've been accepted to Purdue university as an undergraduate. Is it worth taking a student loan for around $50k?
What are the prospects are finishing my undergrad degree? Will I be able to pay off my debt before post-grad...
Im new to all this and find it very confusing. Help will be appreciated, thank you! :)</p>