There is a place for both in most development work.
Unit testing is there to test small units of code, to see that they work as expected.
Functional testing is there to test that the overall functionality of the system is as expected.
They are at different levels and both should be used.