You can apply and successful gain a PhD project directly following your final year, but it is preffered if you have some sort of work experience. What I did was apply for summer placements for during my summer holidays, and then I took a year out after I finished my degree to do more work in temporary lab jobs. Also I did a bit of travel, which seemed to impress more at interviews than the work experience!!