This is the best period to undergo surgery. You don't need to go out for many things before you had to, you can work at home very often. And people stay at home much more than before.
If you are planning it, do it as soon as possible, my suggestion.
You can face the problems you were talking about only if there is a total (100%) Lockdown, and now in the world that's for sure way less common than before.