Yes, the app developer didn't break the Amazon TOS policy so it's totally safe and legal! However, there might be some copyright issues with Amazon if you upload their books without getting proper rights.