Powering MEGA from external 5V regulated source

Hello everybody !
this is my first topic here and i need help
i'm using a L298N module H-bridge driver which has an in-built logic 5V ( the multimeter reading is 5.00V)
now can i feed the MEGA 2560 with this voltage and to which pin i have to connect ? 5V or Vin ?
and is it safe ?
thanks !

Please don't crosspost.
Question has been answered in your other post.

Topic locked.