Medical preparedness and community education are the most valuable preventive tools for combatting the COVID-19 pandemic. This study aims to assess the role of media public health awareness campaigns on the knowledge of the general population about COVID-19 in Rawalpindi, Pakistan. A quantitative study using a pre-post design among 384 respondents was conducted. A structured questionnaire was administered to the participants twice: The first response (<em>t</em><sub>1</sub>) from participants was filled in during the 1st week in February 2020 before any confirmed cases were reported in the country, and the second response (<em>t</em><sub>2</sub>) was completed 1 month after the first case detection in Pakistan (March 2020). Media health awareness campaigns were launched just after the detection of the first case in Pakistan. Exposure to the media and knowledge relating to COVID-19 increased over time. Whereas, only a quarter of respondents judged the isolation of suspected cases in quarantine to be important to prevent the spread of infection in society at<em>t</em><sub>1</sub>, more than half did so at<em>t</em><sub>2</sub>. Socio-demographic characteristics were not significantly associated with knowledge (gains). However, more frequent use of electronic media is associated with greater knowledge gains from<em>t</em><sub>1</sub>to<em>t</em><sub>2</sub>. The findings of this study provide evidence that awareness and knowledge related to COVID-19 symptoms and preventive measures increased significantly over time. The increased frequency of following the media indicates that health awareness campaigns are important for enhancing the knowledge of the general public regarding COVID-19.