Yes, you can.
If the user is logged-in, use our User Details Shortcode
If the user is not logged in, you can transfer the user’s name as a value of a query parameter in the URL and use our Query-string Dynamic Keyword Insertion shortcode to display the value.