In my Push Pull Leg Split, I'll be doing Deadlift on Pull day and next day, i.e leg day, I'll be doing Squats. Is there any problem doing this? Will you get any injury due to both have a great presure on your spine and enough recovery time is not given?
It depends on your goals, your deadlift style, and your intensity - and intensity is driven by your goals. It is intensity that determines how you split your training up and how many rests days you need.
If you are deadlifting conventionally, this will probably work fine, assuming that your intensity is moderate to low. If you've only been training for 6 months then this is likely the case.
If your deadlifting sumo style, it would have a greater impact on your performance in the squat the next day, but you certainly are not going to hurt yourself if your are resting and eating enough and using proper form.
The only danger that would come into play here is if you made yourself so sore from deadlifts that your form broke down on squat day.
I don't know what your goals are, so beyond this it's hard to advise. Personally I always deadlift after squatting because for many people, myself included, squatting will increase your deadlift, but deadlift - conventional or otherwise - will do nearly nothing for your squat.
Thus I like performing the most efficient strength builder first, the squat, and then I hit deadlift with lighter weight and focus on strict form.
So no, there is nothing inherently wrong with this at all. Just be mindful that as the weights climb on the deadlift day, they will slow down and eventually stall out on squat day.