Constricting the pupil can certainly reduce the effect of defects in the eye lens by reducing the amount of lens used; however, it won't work well in dim light.
Alternative: Increase environmental lighting and use bright, high contrast displays with dark text on bright backgrounds (no dark mode). This will not just constrict your pupils (as the eyedrops do), but also increase the rate of photons reaching your retina in bright areas of the scene relative to dark areas (in other words, improves contrast, which the eyedrops won't do).
Alternative: Increase environmental lighting and use bright, high contrast displays with dark text on bright backgrounds (no dark mode). This will not just constrict your pupils (as the eyedrops do), but also increase the rate of photons reaching your retina in bright areas of the scene relative to dark areas (in other words, improves contrast, which the eyedrops won't do).