As long the firewall is not in between UC and phones, there is no problem in doing that.
Please note, unless you have considerable experience in telephony and networking, it is extremely advisable that you do not try to do the installation and configuration by yourself, if you want sure and fast results, engage a reputable consultant, or UC certified Cisco Partner.