How to assign automatically role profile and module profile

when i create employee and choose designation as ‘Technician’ and i create user automatically assign role profile and module profile as ‘Technician’
is it possible?

That for, you have to write a server logic according to the scenario.