vtkDataSetMapper vs vtkPolyDataMapper

I am working on a project and in my project I have defined mapper as vtkDataSetMapper and my input data is vtkPolyData type. I want to ask, can I use vtkPolyDataMapper with this data?

Yes. vtkDataSetMapper is a convenience class that converts the input to vtkPolyData.

Note, the Support category is more appropriate for this kind of questions

Thanks for help. I will keep this in mind.