Yes, the type of questions asked in Prelims & Mains are different. In prelims, the questions are mostly basic. In main exam, the questions will be of advanced level. Therefore, you should prepare from different books.