Will a shortcode placed inside a paragraph tag still be valid?

No. Wrapping a tag around a shortcode won’t prevent the function from executing.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)