Yes, that would work... But I think it may be better to approach this a different way first and see if that resolves the issue without needing to add to Start Up.
Since it is doing it each time you open the lid, this suggests that closing the lid is killing your Wifi. If we stop that, it may solve the problem on opening the lid.
In /etc/systemd/ is a file
logind.conf. Within that is a series of settings listed out. One of them is
HandleLidSwitch=suspend and it is commented out with a hashtag at the front.
Remove that hashtag and change it to
sudo nano /etc/systemd/logind.conf
Then arrow key down to the line
change it to
press ctrl+x to exit, then hit the
y key to say Yes To Save, then the
enter key to save as current configuration.