This is a viable investment strategy, usually called buying REOs or Repos. Put those terms into the search function on this main board forum of this CREONLINE.COM site and you will find so many posts you will not be able to read them all in one day.
Just don’t waste time approaching lenders that have sold properties that are insured by FHA or the VA, they turn them over to those agencies which market in their own inimicable fashion.