If hair loss is progressing, this comes before any procedure.
The main driver of hair loss is a male hormone that makes hair finer. The oral medication blocks its production so hair that was thinning comes back. The topical acts on scalp blood flow and the hair cycle to extend the growing phase. Both are approved standard treatments for male pattern hair loss, and the effect ends when they stop.
Hair loss medication is the standard treatment for male pattern hair loss, using oral and topical agents. The oral drug blocks production of the male hormone that thins hair, while the topical acts on scalp circulation and the hair cycle to lengthen the growing phase. They work at different points, so used together they complement each other.