If you can access the pad, even if you have to use the finest tip you can, then that's of course no problem, just top-side solder it, for through hole resistors, diodes, transistors etc... no problem. Electrolytic capacitors you can always just have hovering above the board a couple mm so you can get the iron under. If it's a PCB header you are doing, that's easily enough resolved just by lifting the plastic base up a bit and solder underneath before pushing it back down, bit of a fiddle but works fine, for board-to-board interconnects you could consider using round-pin (aka machine pin) headers which you can solder top-side no problem.
If you can't access the pad at all though then it's tricky.
Using a hollow rivet is probably best, if the hole/pad is wide enough to accommodate the rivet large enough to get the pin through the rivet. But getting said rivets may be expensive though...
https://www.megauk.com/through_hole_rivets.php If the hole is really tight on the pin, MAYBE, you could put a mound of solderpaste over the pad, insert the part, and heat the pin to melt the now hidden solderpaste and hope it works. Never tried it, just an idea.
Taking some thin repair enamelled wire (0.1mm or whatever), you could wrap it around the top of the pin right under the component body and thinly solder in place, insert the part so the wire is between the part and board, and then affix the other end of said wire to somewhere on the top side trace in question which is more accessible.