Is it possible to customise field type or include validation in a field type?

Thank for the response
I would like to include validation within the admin panel