While I wouldn't assemble the sandwich until you're ready to serve it (it would get too soggy), you can certainly prepare the pesto sauce and the tuna mixture ahead of time. Then, just assemble everything when you're ready.