Not according to the picture. What you have installed is illegal and could be unsafe. Definitely not done "to code" Flexible cable is NOT allowed for permanent installation, and the cable MUST be secured to the structure within 6 inches of the box, and fastened every 2 frrt or so to the wall. Also, that kinf of cable needs to be secured to the box with a proper strain relief bushing listed for use with that cable.