Erect kegels are even better. That way you keep the penis with more and more blood and get better kegels (because it gets fuller and heavier and therefore the PC muscles have to push harder to do a normal kegel. Some even go as foar as putting wet towels for even more intense kegel routine ). So yes, it's good
There many kegel routines and erect ones are more advance. Try muscles faster than flaccid and be sure to do the same amount of reverse kegels into your routine.