Yes, of course, Forex trading is allowed in Pakistan, and in the last few years it has been actively gaining popularity. But here it is important to keep in mind that Muslims are not allowed to trade on all platforms, and there are special rules for them, which you can read here
https://coinmarketcap.com/community/articles/66b633d459960d601f2cc844/.