It might be possible, but is dangerous yes, if all mods you have for 1.10.2 are ready for 1.12.2 and 'hopefully' they didn't change too much in the mods during 1.11.2 or 1.12/1.12.2 then you might be able to, I'd check the changelogs of the mods to be sure if anything too dramatic makes it impossible especially for world gen or items that are important to your world that the mod adds that might be removed or changed or are written differently in code possibly since while unlikely in some ways it is a thing to consider what will work. Just like how Vanilla players have to consider for mob farms to work in one version but not the next if water physics changes or something in another update for example. For items, world gen or otherwise. I'd say the chance is to not update, but if it is possible then go for it. I'd backup your world first though before doing this if you wish to test the possibilities though so you don't ruin your world in a 1.10.2 state where it works and only the updated 'attempt' instead.