is 12V safe for my project?

I would power the motor from 12V and use this regulator to just power the arduino. Set it to 7V and feed it to the Vin pin, that way your arduino regulator will not get hot.