Yes as long as you're able to get the laser eye surgery then the laser eye surgery will fix both near and farsightedness.
However lasik Laser eye surgery is not effective at correcting presbyopia which is caused by hardening and thickening of our eyes lenses.
When I say able to get Lasik eye surgery I mean that all people are able to have the Laser eye surgery due to complications it might present.