No. If you disclose your invention to a member of the public before applying for a patent, then that disclosure becomes prior art and may invalidate your patent application. This disclosure includes publications in newspapers, magazines, websites, books, discussion with people who have no legal obligation to keep your invention confidential, etc.
Some countries, such as the USA, provide a “grace period” during which an applicant may still file a patent application even if the invention has been published without said publication counting as prior art. However, there are countries were no “grace period” is provided.