Only if it's only accessible via proper TLS (otherwise it's easy to read the user/pass with MITM as basic auth doesn't encrypt the user/pass).
If there is no throttling/rate-limiting/banning then this setup allows for a lot of attempts, wether brute-force or dictionary.