Yes, you can. See here:
How to get current page's URL + how can I apply regex to a given variable - #2 by newuserkantu
Get current url of a webpage instead the current url of ui.vision
Getting URL of current page