Of course, you can. However, it is not advisable to do so as painter’s putty is not designed to use with raw drywall. Instead, it is meant to be used with plaster. You will get better results when you use a spackle instead. Spackle is a purpose-built joint compound for drywall and will give you your desired results.