Yes, but what if the user has some text selected and then launches your shortcut? That would be a more intentional user step and be very handy. (This would be in the spirit of PopClip for Mac.)
I use that approach in a shortcut I created and use many times a day (and even while typing this post ): Augment or Filter Text
More recently, I added that feature to Log It. If you are interested, the logic might be easier to follow in that macro.