It’s only ok if you don’t mind losing the money that’s in that wallet in case LocalBitcoins gets hacked. I highly suggest getting a wallet that isn’t operated by a 3rd party such as MyCelium or Greenaddress. Here’s a complete tutorial about Bitcoin wallets that may help explain this even better.