They are similar, but not quite the same. The main difference is that custard is actually less firm. Custard is typically thickened only with eggs (which you might recall is how we made the custard for our Creme Brulee), while pastry cream is thickened with a starch (corn starch, in this instance). Vanilla pudding is also similar and in the same family, but not quite the same thing.