Does a non resident alien need to pay Federal Income tax if total stay in US is less than 6 months but salary is coming from US job being done remotely?

Does a non resident alien need to pay Federal Income tax if total stay in US is less than 6 months but salary is coming from US sourced job being done remotely? 

P.S. work is being done remotely due to Covid travel restrictions