For example:
$(document).ready(function(){ $(\'.selector\').click(function(){ }); });
No it's not. Just as long as you know that the JS is executed after the PHP page is parsed.