Yes, as long as they’re not too hot. Allow the cookies to cool until they are warm and then you can frost them. If they are too hot the frosting will melt and get runny.