Good choice, best to be prepared rather than wait for a roadside repair without tools to get you out riding ASAP.
I'll leave a plug in the rear but not the front. I have done this without any issues on 3 occations.
I carry a small 12volt air compressor and tire plugs to get to get me home. I am my own tire man!
Thorns
It is okay Jammerx, using a plug to get your tubeless tire or aerosol flat fix for the tube tire (if you had a slow leak, not a blow out) to get you "out of the woods" is an option based on necessity. Just remember it is a temporary repair and to get that repaired tire off as soon as possible and replaced with a new tire (and tube if so equipped). As Steve said, if you must repair that old tire, make sure it is patched from the inside, but is really not recommended on a motorcycle tire. That small 4 x 6 tire patch is the only thing between you and the road, and the side stresses and heat are so much greater than an automotive tire.