No it's not possible since the Grails tag is processed server-side (before the page is rendered by the client) and JQuery/Javascript is processed client-side in the browser after the Grails tag has already been processed by the server. Thus, you can't use JQuery/Javascript to effect the Grails tag.
However, you could do something like this:
<a id="someLink" href="#">Something</a>
<script type="text/javascript">
var baseUrl = "${createLink(controller: 'someThing', action: 'someAction'}";
var id = 1234;
$("#someLink").attr("href", baseUrl+"/"+id);
</script>