Yes, in many cases it is possible to take tours of the castles in Dublin. Check the castle’s website for details (links in post above).