Yes! Those both work no matter how many missing values you have (although if your data get sparse enough you could have trouble modeling it ).
If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it: