Yes, a pergola can be attached to your house. Known as an attached pergola, it provides shade and architectural interest to your home. Properly attaching a pergola requires anchoring it to the house's wall or ledger board, ensuring structural integrity and stability. Consult a professional to ensure a safe, secure installation.