I would question getting a dog before you know how you will feel after surgery unless somebody can care for it until you are ready to. You can be very weak after surgery and even more so if the surgeon confines you to bed longer than the normal 2 days. If it's a young dog, your sleep requirement might interfere with your ability to care for the dog. After you know how your recovery is going, I see no problem.