Can I install the wall unit near baseboards?

Yes, just make it a comfortable height for you dog.