It depends on the situation.
If this is the only foreign work experience you have and you need it to qualify for FSW, it won’t count. To meet the minimum requirement, it needs to be continuous for at least 1 year (52 weeks) and in one NOC only.
If you only want to use the foreign work experience to gain points under the CRS, it will count.