Is it secure to use SMTP password in .php file in WordPress website?

Is it secure to use SMTP password in .php file in WordPress website?