Your surgeon is in the best position to tell you.
The answer depends upon the type of bunionectomy you are having performed, your overall health and your occupation. If you have a sit-down job and can elevate your foot, y, then probably. Of course, if it is your right foot, driving can be issue. If you have to be on your feet for long periods of time at work, then probably not.