Yes you can, however it isn’t recommended. Most people that go in for their test without any lesson from a driving instructor end up failing. Even if you have had lots of driving lessons with a friend or family member, it is always advisable to have some lessons with a qualified instructor, as they will ensure you have everything covered you need to, to have the best chance of passing your driving test.