It's possible that a factory reset could fix the issue with your volume control, but it's not guaranteed. Before attempting a factory reset, you could try a few other troubleshooting steps to see if they resolve the issue.
First, try restarting your device. Sometimes, simply turning it off and on again can reset any settings that may be causing problems.
If that doesn't work, try cleaning the volume buttons with a soft, dry cloth. It's possible that dirt or debris has gotten into the button and is causing it to stick or malfunction.
If neither of those steps works, you could try a factory reset. Keep in mind that this will erase all data and settings on your device, so be sure to back up any important information beforehand. To perform a factory reset, consult the user manual or contact the manufacturer for instructions specific to your device.