Yes, Craigmillar Castle was featured in Episode 3, All Debts Paid, of Outlander Season 3. It was portrayed as Ardsmuir Prison, where Jamie’s male lead protagonist was imprisoned with his mates.