Does the medicine need to get beneath my nail?

Yes, if the infection continues to the base of the nail, it can invade the nail root (matrix) and cause the nail to grow thickened and deformed.