entry clarification

Pranay Dubey (51 Points)

10 November 2018  
in my book the entry for
goods distributed by way of free sample 1000

and entry is passed in the book

advertisement exp a/c dr
to purchase account

is the below entry can be treated as alternative to above entry?

profit and loss a/c dr
to trading account a/c

please clarify