Yes you can because pastry chef and chef are both the art of cooking.
A pastry chef makes pastries, which are baked things like pies and tarts.
a chef in a restaurant that makes deserts.
pastry chef
123146578794567.... who cares :)