Baby boy name?

So I've been with my SO for well over a year now. We don't know the gender of our baby yet. We have a girl name picked out but not a boys name. But to try to make a long story short: before my current SO, I was with another guy that I was absolutely head over heels for and he was with me too. He VERY unexpectedly passed February 1, 2015 early in the morning (he was only 26). My SO has always been very understanding of my situation and how I felt, especially since he knew him too. He's even come to the grave site (about 2 hours away from where we live) a few times with me. Before this my best friend (also a boy) passed on August 8, 2013. My question is, would it be wrong (or I don't really know what word to use there) for me to want to name my baby after them if it's a boy? I was thinking of using both their middle names. So William (my former SO's middle name) Michael (my best friend's). Thoughts?