Upvote:8
There are no such restrictions. If you have a valid visa for Pakistan (and you would need one), you can enter Pakistan.
Your only choice of transit is the Wagah border which is near the city of Lahore (the provincial capital of the state of Punjab, Pakistan). On the Indian side, you would start at Delhi.
There is a bus service you can take. The journey takes approximately 8 hours.
Of course, you can always fly as well.