During the coronavirus disease 19 (COVID-19) pandemic it has become very important to comply with preventive measures. We aimed to assess compliance with applicable restrictions and to explore the links between the level of compliance and the risk of COVID-19. This cross-sectional study included Polish adults who were asked to complete a validated questionnaire. The study period was from 1 November 2020 to 31 January 2021 and a computer-assisted web interview method was chosen to perform the survey. The study involved 562 women and 539 men. COVID-19 was reported in 11.26% of participants. A good level of compliance with the sanitary restrictions was reported for 38.87% of participants, an average level of compliance for 47.96%, and a low level of compliance for 13.17%. A reduced risk of COVID-19 was associated with the following preventive measures: regular use of protective masks, social and physical distancing in public places, regular use of hand sanitizers with high ethanol content, and the use of disposable gloves in public places. Our survey revealed satisfactory public compliance with the pandemic restrictions. Sanitary and epidemiologic measures to prevent the pandemic were shown to be adequate and effective.