Sort of: If you only ever need a cookie set on app.example.com, you can do that and use assets.example.com. It'll work for simple applications and not much else.
Things like Google Analytics also set cookies by default on *.example.com so you'll have to figure out a way around that.
Things like Google Analytics also set cookies by default on *.example.com so you'll have to figure out a way around that.