you can if you put your js and css files in the view folder e.g. controllers/default.py def myscript(): return dict()
def index():
response.files.append(URL('myscript.js'))
views/default/myscript.js
jQuery(document).ready(function() {
alert('this is an alert with a web2py url {{=URL('index')}}')
});

