Both are important. Knowledge gives you the basics, while understanding lets you apply and build on that knowledge in different situations.