Like with most things about recording / producing there are NO hard and fast rules
If it captures the sound YOU are after then that is what counts - there are so many variables: the guitar, the strings, how you play, the amp, the amp settings, the speaker(s), the mic choice, the mic placement, - and this is all before any tweaking within the daw
However, the comments so far are great starting points
As a "workflow" point I would always suggest taking a DI feed along with your mic'd recording
It only takes up a track and having a clean option to re-amp later on is never a bad option
I am a big fan of "in the box" amp sims and personally recommend Guitar Rig 5 and Amplitube
I generally use Guitar Rig for dirtier sounds and Amplitube Fender for classic clean tones
ALL of the songs I have posted here use these amp sims for electric guitar
I think the tone is close enough to the "real deal" when put in the mix and the convenience of just plugging in and playing FAR outweighs the alternative of plugging an amp in, finding a "family friendly" time to record, setting up mics etc.
The other advantage is that you can add parts weeks later by just loading a preset - the alternative is trying to remember amp settings, mic placement etc.
I have never been obsessive about chasing "tone' as I feel most of the magic is in the fingers - the results I am getting from my amp sims far exceeded my expectons and the convenience of just plugging straight in to my laptop is ridiculous